<?php 
if(!defined('PATH')){die('Access denied.');}
$titleName='SS-PicWall';
include_once(PATH.'template/_head.php'); ?>
	<div>
		Edit my <a href="<?php echo SURL;?>?cmd=editprofile">profile</a>&nbsp;-&nbsp;<a href="<?php echo SURL;?>?cmd=logout">Logout</a>
		<br />
		My Pictures(<?php echo $totalEntries?> pictures in total): -- <a href="<?php echo SURL;?>?cmd=upload">Upload</a>
		<br />
		<?php foreach($contents as $k=>$v){?>
				<p>
					<a href="<?php echo SURL;?>?cmd=picraw&amp;pi=<?php echo $v[0];?>&amp;ph=<?php echo $v[1];?>" target="_blank">
						<img src="<?php echo SURL;?>?cmd=picraw&amp;pi=<?php echo $v[0];?>&amp;ph=<?php echo $v[1];?>&amp;resize=200x200" alt="Loading..." />
						<br />
						Download&nbsp;
					</a>
					<a href="<?php echo SURL;?>?cmd=delete&amp;pid=<?php echo $v[0];?>">Delete</a>
				</p>
		<?php } if($currentPage>1){?><a href="<?php echo SURL;?>?cmd=home&amp;page=<?php echo $currentPage-1;?>">&lt;&lt;Prev</a>&nbsp;&nbsp;<?php }?>
		<?php if($currentPage<$totalPage){?><a href="<?php echo SURL;?>?cmd=home&amp;page=<?php echo $currentPage+1;?>">Next&gt;&gt;</a><?php }?>
		<br />
		<a href="<?php echo SURL;?>?cmd=upload">Upload</a> a new picture.
	</div>
<?php include_once(PATH.'template/_foot.php');